use unmp::id::Id;

/// socket地址
#[derive(Clone)]
pub struct SocketAddr {
    /// 设备ID
    pub id: Id,
    /// 端口号
    pub port: u8,
}
impl SocketAddr {
    pub const fn new(id: Id, port: u8) -> Self {
        Self { id, port }
    }
}
